package router

import (
	"api/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	api := r.Group("/api")
	{
		ticket := api.Group("/ticket")
		{
			ticket.POST("/list", handler.ListTicket)
			ticket.POST("/login", handler.Login)
			ticket.POST("/add", handler.Add)
			ticket.POST("/info", handler.Info)
		}
	}
}
